package com.suixun.service.common;

import java.util.List;
import java.util.Map;

import com.suixun.dao.model.PageGrid;
import com.suixun.dao.model.PageQueryModel;


public interface CommonService {

	// 分页查询方法
	public PageGrid pageForObject(String statementName,
			PageQueryModel parameterObject);

	public <E> List<E> selectList(String statement,
			Map<String, String> parameter);

	public <K, V> Map<K, V> selectMap(String statement,
			Map<String, String> parameter, String mapKey);

	public <T> T selectOne(String statement, Map<String, String> parameter);


	public int delete(String statement);

	public int delete(String statement, List lst);
	
	
	public Map<String,String> initDropdownbox(String statement,Map<String, String> parameter);
	
	

}
